package com.miracle.login.module.di.module;

import com.miracle.basemvp.di.scope.ActivityScope;
import com.miracle.login.module.mvp.contract.RegisterContract;
import com.miracle.login.module.mvp.model.RegisterModel;

import dagger.Module;
import dagger.Provides;

/**
 * com.miracle.login.module.di.module
 * (c)2018 AIR Times Inc. All rights reserved.
 *
 *
 * @author WangJQ
 * @version 1.0
 * @date 2018/7/5 14:29
 * @see com.miracle.login.module.di.module
 */
@ActivityScope
@Module
public class RegisterModule {
    private RegisterContract.View mView;

    public RegisterModule(RegisterContract.View view) {
        mView = view;
    }

    @ActivityScope
    @Provides
    RegisterContract.View provideRegisterView() {
        return mView;
    }
    
    @ActivityScope
    @Provides
    RegisterContract.Model provideRegisterModel(RegisterModel model) {
        return model;
    }
}
